Document::DoMakeWindows

Section: ET++ method description (n)
Updated: automatically Fri Mar 15 14:13:05 1991
Index Return to Main Contents
 

NAME

Document::DoMakeWindows - instance method  

TEMPLATE

mainWindow = Window * DoMakeWindows()  

SPECIFIERS

public abstract virtual  

DESCRIPTION

DoMakeWindows must create the main window of the document. It is called by the method OpenWindows when the document is opened.
DoMakeWindows creates the window layout as well as one or more views which will display the document's data. The window's and the view's next event handler are set to this. A typical implementation looks like this:
Window *MyDocument::DoMakeWindows()
{
    // create a view with "this" as next event handler
    View *myView = new MyView(this, /* document's data */);

    // window's next handler is also "this"
    return new Window(this, Point(300), eWinDefault,
                        new Scroller(myView));
}


Method is always overridden.  

ARGUMENTS

none

 

RETURN ARGUMENT

Window * mainWindow

the main window of the document. See
instvar window.
 

CATEGORIES

windows, overrider interface

 

FIRST DEFINITION

class Document  

FILES

implementation:
Document.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FIRST DEFINITION
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:28 GMT, March 30, 2022